package com.xiaoma.tpo.resource;

import java.util.Arrays;

public class TPOConstants {

    public static final String PC ="PC";
    public static final String MAC ="MAC";
    public static final String MOBILE ="MOBILE";
    
    public static final int GATE_WORD = 1;
    public static final int GATE_SENTENCE =2;
    public static final int GATE_CHAPTER =3;
    public static final int GATE_WORD_4 = 4;
    public static final int GATE_WORD_5 =5;
    public static final int GATE_WORD_6 =6;
    public static final int GATE_WORD_7 = 7;
    public static final int GATE_SENTENCE_8 =8;
    public static final int GATE_SENTENCE_9 =9;
    public static final int[] WORD_TB = {GATE_WORD,GATE_WORD_4,GATE_WORD_5,GATE_WORD_6,GATE_WORD_7};
    public static final int[] SENTENCE_TB = {GATE_SENTENCE,GATE_CHAPTER,GATE_SENTENCE_8,GATE_SENTENCE_9};
    
    
    public static final int READING = 1;
    public static final int LISTENING = 2;
    public static final int WRITING = 3;
    public static final int SPEAKING = 4;
    
    
    public static final int BONUS_SIGN = 1;
    public static final int BONUS_TASK = 2;
    public static final int BONUS_ACHIEVEMENT = 3;
    
    public static final int TASK_DAY = 1;
    public static final int TASK_WEEK = 2;
    public static final int TASK_FIXED = 3;
    public static final int TASK_CLASS = 4;
    
    public static final int TASK_CATEGORY_LISTENING = 1;//听音
    public static final int TASK_CATEGORY_RECORDING = 2;//录音
    public static final int TASK_CATEGORY_COURSE = 3;//课程
    public static final int TASK_CATEGORY_WORD = 4;//词汇
    public static final int TASK_CATEGORY_LOGIN = 5;//登陆
    
    public static final int USER_LISTENING = 1;//听音量
    public static final int USER_RECORDING = 2;//录音量
    
    
    public static final String PAY = "http://center.xiaomatuofu.com";//支付API(测试)
    public static final String XMPG = "http://tpp.xiaoma.com";//统一批改(测试)
//    public static final String PAY = "http://c.xiaomatuofu.com";//支付API(线上环境注意切换至此)
//    public static final String XMPG = "http://un.xiaoma.com";//统一批改(线上环境注意切换至此)
    
    public static final String PRODUCTION_NAME = "XMTOEFL_21";
    public static final String MODULE_NAME = "XMTOEFL_21_ORAL";
    
    public static final int STUDENT = 1;
    public static final int TEACHER = 2;
    public static final int ADMIN = 3;
    
    
    
    public static void main(String[] args) {
        System.out.println(Arrays.binarySearch(WORD_TB, 1));
        System.out.println(Arrays.binarySearch(WORD_TB, 2));
        System.out.println(Arrays.binarySearch(WORD_TB, 3));
        System.out.println(Arrays.binarySearch(WORD_TB, 4));
        System.out.println(Arrays.binarySearch(WORD_TB, 5));
        System.out.println(Arrays.binarySearch(WORD_TB, 6));
        System.out.println(Arrays.binarySearch(WORD_TB, 9));
        System.out.println(Arrays.binarySearch(WORD_TB, 8));
    }
}
